package com.mrlee.service;

import com.github.pagehelper.PageInfo;
import com.mrlee.bean.Cost;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by dllo on 18/3/13.
 */
public interface CostService {

    List<Cost> selectAllCost();

    List<Cost> selectAllOpenCost();

    List<Cost> selectAllAscBybc();

    List<Cost> selectAllDescBybcost();

    List<Cost> selectAllAscBybd();

    List<Cost> selectAllDescBybd();

    int deleteCostById(Integer id);

    int updateStById(Integer id);

    Cost selectById(Integer id);

    int updateByPrimaryKeySelective(Cost record);

    int insert(Cost record);

    PageInfo<Cost> queryCostByPage(Integer pageNo, Integer pageSize);

}
